home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / ghost / gs403src_amiga.lha / gs4.03 / lib.mak.in < prev    next >
Text File  |  1997-03-16  |  33KB  |  1,012 lines

  1. #    Copyright (C) 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # (Platform-independent) makefile for graphics library and other support code.
  16. # See the end of gs.mak for where this fits into the build process.
  17.  
  18. # Define the name of this makefile.
  19. LIB_MAK=lib.mak
  20.  
  21. # Define the inter-dependencies of the .h files.
  22. # Since not all versions of `make' defer expansion of macros,
  23. # we must list these in bottom-to-top order.
  24.  
  25. # Generic files
  26.  
  27. arch_h=arch.h
  28. stdpre_h=stdpre.h
  29. std_h=std.h $(arch_h) $(stdpre_h)
  30.  
  31. # Platform interfaces
  32.  
  33. gp_h=gp.h
  34. gpcheck_h=gpcheck.h
  35.  
  36. # Configuration definitions
  37.  
  38. # gconfig*.h are generated dynamically.
  39. gconfig__h=gconfig_.h
  40. gconfigv_h=gconfigv.h
  41. gscdefs_h=gscdefs.h
  42.  
  43. # C library interfaces
  44.  
  45. # Because of variations in the "standard" header files between systems, and
  46. # because we must include std.h before any file that includes sys/types.h,
  47. # we define local include files named *_.h to substitute for <*.h>.
  48.  
  49. vmsmath_h=vmsmath.h
  50.  
  51. dos__h=dos_.h
  52. ctype__h=ctype_.h $(std_h)
  53. dirent__h=dirent_.h $(std_h) $(gconfig__h)
  54. errno__h=errno_.h
  55. malloc__h=malloc_.h $(std_h)
  56. math__h=math_.h $(std_h) $(vmsmath_h)
  57. memory__h=memory_.h $(std_h)
  58. stat__h=stat_.h $(std_h)
  59. stdio__h=stdio_.h $(std_h)
  60. string__h=string_.h $(std_h)
  61. time__h=time_.h $(std_h) $(gconfig__h)
  62. windows__h=windows_.h
  63.  
  64. # Miscellaneous
  65.  
  66. gdebug_h=gdebug.h
  67. gsalloc_h=gsalloc.h
  68. gserror_h=gserror.h
  69. gserrors_h=gserrors.h
  70. gsexit_h=gsexit.h
  71. gsio_h=gsio.h
  72. gsmdebug_h=gsmdebug.h
  73. gsmemory_h=gsmemory.h
  74. gsrefct_h=gsrefct.h
  75. gsstruct_h=gsstruct.h
  76. gstypes_h=gstypes.h
  77. gx_h=gx.h $(stdio__h) $(gdebug_h) $(gserror_h) $(gsio_h) $(gsmemory_h) $(gstypes_h)
  78.  
  79. GX=$(AK) $(gx_h)
  80. GXERR=$(GX) $(gserrors_h)
  81.  
  82. ###### Support
  83.  
  84. ### Include files
  85.  
  86. gsbitops_h=gsbitops.h
  87. gsbittab_h=gsbittab.h
  88. gsflip_h=gsflip.h
  89. gsuid_h=gsuid.h
  90. gsutil_h=gsutil.h
  91. gxarith_h=gxarith.h
  92. gxbitmap_h=gxbitmap.h
  93. gxfarith_h=gxfarith.h $(gconfigv_h) $(gxarith_h)
  94. gxfixed_h=gxfixed.h
  95. gxobj_h=gxobj.h $(gxbitmap_h)
  96. # Out of order
  97. gxalloc_h=gxalloc.h $(gsalloc_h) $(gxobj_h)
  98.  
  99. ### Executable code
  100.  
  101. gsalloc.$(OBJ): gsalloc.c $(GX) $(memory__h) \
  102.   $(gsmdebug_h) $(gsstruct_h) $(gxalloc_h)
  103.  
  104. gsbitops.$(OBJ): gsbitops.c $(AK) $(std_h) $(memory__h) $(gsbitops_h)
  105.  
  106. gsbittab.$(OBJ): gsbittab.c $(AK) $(stdpre_h) $(gsbittab_h)
  107.  
  108. # gsflip is not part of the standard configuration: it's rather large,
  109. # and no standard facility requires it.
  110. gsflip.$(OBJ): gsflip.c $(GX) $(gsflip_h)
  111.     $(CCLEAF) -I. $(srcdir)/gsflip.c
  112.  
  113. gsmemory.$(OBJ): gsmemory.c $(GX) $(malloc__h) $(memory__h) \
  114.   $(gsmdebug_h) $(gsrefct_h) $(gsstruct_h)
  115.  
  116. gsmisc.$(OBJ): gsmisc.c $(GXERR) $(gconfigv_h) \
  117.   $(malloc__h) $(math__h) $(memory__h) $(gpcheck_h) $(gxfarith_h) $(gxfixed_h)
  118.  
  119. gsutil.$(OBJ): gsutil.c $(AK) $(gconfigv_h) \
  120.   $(std_h) $(gstypes_h) $(gsuid_h) $(gsutil_h)
  121.  
  122. ###### Low-level facilities and utilities
  123.  
  124. ### Include files
  125.  
  126. gdevbbox_h=gdevbbox.h
  127. gdevmrop_h=gdevmrop.h
  128.  
  129. gsccode_h=gsccode.h
  130. gsccolor_h=gsccolor.h $(gsstruct_h)
  131. gscolor1_h=gscolor.h
  132. gscoord_h=gscoord.h
  133. gscpm_h=gscpm.h
  134. gsdevice_h=gsdevice.h
  135. gsfont_h=gsfont.h
  136. gshsb_h=gshsb.h
  137. gsht_h=gsht.h
  138. gsht1_h=gsht1.h $(gsht_h)
  139. gsiparam_h=gsiparam.h
  140. gsjconf_h=gsjconf.h $(std_h)
  141. gslib_h=gslib.h $(stdio__h)
  142. gslparam_h=gslparam.h
  143. gsmatrix_h=gsmatrix.h
  144. gspaint_h=gspaint.h
  145. gsparam_h=gsparam.h
  146. gspath2_h=gspath2.h
  147. gspenum_h=gspenum.h
  148. gsropt_h=gsropt.h
  149. gsxfont_h=gsxfont.h
  150. # Out of order
  151. gschar_h=gschar.h $(gsccode_h) $(gscpm_h)
  152. gscolor2_h=gscolor2.h $(gsccolor_h) $(gsuid_h) $(gxbitmap_h)
  153. gsimage_h=gsimage.h $(gsiparam_h)
  154. gsline_h=gsline.h $(gslparam_h)
  155. gspath_h=gspath.h $(gspenum_h)
  156.  
  157. gxbcache_h=gxbcache.h $(gxbitmap_h)
  158. gxchar_h=gxchar.h $(gschar_h)
  159. gxcindex_h=gxcindex.h
  160. gxcvalue_h=gxcvalue.h
  161. gxclio_h=gxclio.h
  162. gxclip2_h=gxclip2.h
  163. gxcolor2_h=gxcolor2.h $(gscolor2_h) $(gsrefct_h) $(gxbitmap_h)
  164. gxcoord_h=gxcoord.h $(gscoord_h)
  165. gxcpath_h=gxcpath.h
  166. gxdda_h=gxdda.h
  167. gxdevrop_h=gxdevrop.h
  168. gxdevmem_h=gxdevmem.h
  169. gxdht_h=gxdht.h $(gxarith_h)
  170. gxdither_h=gxdither.h
  171. gxfcache_h=gxfcache.h $(gsuid_h) $(gsxfont_h) $(gxbcache_h)
  172. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h) $(gsstruct_h)
  173. gxfont0_h=gxfont0.h
  174. gxfrac_h=gxfrac.h
  175. gxhttile_h=gxhttile.h
  176. gxiodev_h=gxiodev.h $(stat__h)
  177. gxline_h=gxline.h $(gslparam_h)
  178. gxlum_h=gxlum.h
  179. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  180. gxpaint_h=gxpaint.h
  181. gxpath_h=gxpath.h $(gscpm_h) $(gspenum_h)
  182. gxpcolor_h=gxpcolor.h
  183. gxstate_h=gxstate.h
  184. gxtmap_h=gxtmap.h
  185. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  186. # The following are out of order because they include other files.
  187. gsdcolor_h=gsdcolor.h $(gxarith_h) $(gxbitmap_h) $(gxcindex_h) $(gxhttile_h)
  188. gxdcolor_h=gxdcolor.h $(gsdcolor_h) $(gsropt_h) $(gsstruct_h)
  189. gxdevice_h=gxdevice.h $(gsdcolor_h) $(gsiparam_h) $(gsmatrix_h) \
  190.   $(gsropt_h) $(gsstruct_h) $(gsxfont_h) \
  191.   $(gxbitmap_h) $(gxcindex_h) $(gxcvalue_h) $(gxfixed_h)
  192. gxctable_h=gxctable.h $(gxfixed_h) $(gxfrac_h)
  193. gscie_h=gscie.h $(gsrefct_h) $(gxctable_h)
  194. gscspace_h=gscspace.h
  195. gxdcconv_h=gxdcconv.h $(gxfrac_h) $(gsccolor_h)
  196. gxfmap_h=gxfmap.h $(gsrefct_h) $(gxfrac_h) $(gxtmap_h)
  197. gxistate_h=gxistate.h $(gsropt_h) $(gxfixed_h) $(gxline_h) $(gxmatrix_h)
  198. gxclist_h=gxclist.h $(gxbcache_h) $(gxclio_h) $(gxistate_h)
  199. gxcmap_h=gxcmap.h $(gxfmap_h)
  200. gxcspace_h=gxcspace.h $(gscspace_h) $(gsccolor_h) $(gsstruct_h) $(gxfrac_h)
  201. gxht_h=gxht.h $(gsht1_h) $(gxtmap_h)
  202. gscolor_h=gscolor.h $(gxtmap_h)
  203. gsstate_h=gsstate.h $(gscolor_h) $(gsdevice_h) $(gsht_h) $(gsline_h)
  204.  
  205. gzacpath_h=gzacpath.h
  206. gzcpath_h=gzcpath.h $(gxcpath_h)
  207. gzht_h=gzht.h $(gxdht_h) $(gxfmap_h) $(gxht_h) $(gxhttile_h)
  208. gzline_h=gzline.h $(gxline_h)
  209. gzpath_h=gzpath.h $(gsstruct_h) $(gxpath_h)
  210. gzstate_h=gzstate.h $(gsstate_h) $(gxcvalue_h) $(gxdcolor_h) $(gxistate_h) $(gxstate_h) $(gxtmap_h)
  211.  
  212. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  213.   $(gserrors_h) $(gsmatrix_h) $(gsutil_h) \
  214.   $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  215.  
  216. scommon_h=scommon.h $(gsmemory_h) $(gstypes_h) $(gsstruct_h)
  217. shc_h=shc.h $(gsbittab_h)
  218. siscale_h=siscale.h $(gconfigv_h)
  219. slzwx_h=slzwx.h
  220. spcxx_h=spcxx.h
  221. spdiffx_h=spdiffx.h
  222. spngpx_h=spngpx.h
  223. srlx_h=srlx.h
  224. strimpl_h=strimpl.h $(scommon_h) $(gstypes_h) $(gsstruct_h)
  225. szlibx_h=szlibx.h
  226. # Out of order
  227. scf_h=scf.h $(shc_h)
  228. scfx_h=scfx.h $(shc_h)
  229. gximage_h=gximage.h $(gsiparam_h) $(gxcspace_h) $(gxdda_h) \
  230.   $(siscale_h) $(strimpl_h)
  231.  
  232. ### Executable code
  233.  
  234. # gconfig and gscdefs are handled specially.  Currently they go in psbase
  235. # rather than in libcore, which is clearly wrong.
  236. gconfig=gconfig$(CONFIG)
  237. $(gconfig).$(OBJ): gconf.c $(GX) \
  238.   $(gscdefs_h) $(gconfig_h) $(gxdevice_h) $(gxiodev_h) $(MAKEFILE)
  239.     $(RM_) gconfig.h
  240.     $(RM_) $(gconfig).c
  241.     $(CP_) $(gconfig_h) gconfig.h
  242.     $(CP_) $(srcdir)/gconf.c $(gconfig).c
  243.     $(CCC) -I. -I$(srcdir) $(gconfig).c
  244.     $(RM_) gconfig.h
  245.     $(RM_) $(gconfig).c
  246.  
  247. gscdefs=gscdefs$(CONFIG)
  248. $(gscdefs).$(OBJ): gscdef.c $(stdpre_h) $(gscdefs_h) $(gconfig_h) $(MAKEFILE)
  249.     $(RM_) gconfig.h
  250.     $(RM_) $(gscdefs).c
  251.     $(CP_) $(gconfig_h) gconfig.h
  252.     $(CP_) $(srcdir)/gscdef.c $(gscdefs).c
  253.     $(CCC) -I. -I$(srcdir) $(gscdefs).c
  254.     $(RM_) gconfig.h
  255.     $(RM_) $(gscdefs).c
  256.  
  257. gxacpath.$(OBJ): gxacpath.c $(GXERR) \
  258.   $(gsdcolor_h) $(gsstruct_h) $(gsutil_h) \
  259.   $(gxdevice_h) $(gxfixed_h) $(gxpaint_h) \
  260.   $(gzacpath_h) $(gzcpath_h) $(gzpath_h)
  261.  
  262. gxbcache.$(OBJ): gxbcache.c $(GX) $(memory__h) \
  263.   $(gsmdebug_h) $(gxbcache_h)
  264.  
  265. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  266.   $(gscspace_h) $(gsimage_h) $(gsstruct_h) \
  267.   $(gxchar_h) $(gxdevice_h) $(gxdevmem_h) $(gxfcache_h) \
  268.   $(gxfixed_h) $(gxfont_h) $(gxhttile_h) $(gxmatrix_h) $(gxxfont_h) \
  269.   $(gzstate_h) $(gzpath_h) $(gzcpath_h) 
  270.  
  271. gxccman.$(OBJ): gxccman.c $(GXERR) $(gpcheck_h) \
  272.   $(gsbitops_h) $(gsstruct_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h) \
  273.   $(gxdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxfcache_h) $(gxchar_h) \
  274.   $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  275.  
  276. gxcht.$(OBJ): gxcht.c $(GXERR) \
  277.   $(gsdcolor_h) $(gsutil_h) \
  278.   $(gxcmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gzht_h) $(gzstate_h)
  279.  
  280. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  281.   $(gsccolor_h) \
  282.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) $(gxdither_h) \
  283.   $(gxfarith_h) $(gxfrac_h) $(gxlum_h) $(gzstate_h)
  284.  
  285. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  286.   $(gsstruct_h) $(gsutil_h) $(gxdevice_h) $(gxfixed_h) $(gzpath_h) $(gzcpath_h)
  287.  
  288. gxdcconv.$(OBJ): gxdcconv.c $(GX) \
  289.   $(gsdcolor_h) $(gxcmap_h) $(gxdcconv_h) $(gxdevice_h) \
  290.   $(gxfarith_h) $(gxlum_h) $(gzstate_h)
  291.  
  292. gxdcolor.$(OBJ): gxdcolor.c $(GX) \
  293.   $(gxdcolor_h) $(gxdevice_h)
  294.  
  295. gxdither.$(OBJ): gxdither.c $(GX) \
  296.   $(gsstruct_h) $(gsdcolor_h) \
  297.   $(gxcmap_h) $(gxdevice_h) $(gxdither_h) $(gxlum_h) $(gzht_h)
  298.  
  299. gxfill.$(OBJ): gxfill.c $(GXERR) $(math__h) \
  300.   $(gsstruct_h) \
  301.   $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxhttile_h) \
  302.   $(gxistate_h) $(gxpaint_h) \
  303.   $(gzcpath_h) $(gzpath_h)
  304.  
  305. gxht.$(OBJ): gxht.c $(GXERR) \
  306.   $(gsbitops_h) $(gsstruct_h) $(gsutil_h) \
  307.   $(gxfixed_h) $(gxdevice_h) $(gzstate_h) $(gzht_h)
  308.  
  309. gximage.$(OBJ): gximage.c $(GXERR) $(math__h) $(gpcheck_h) \
  310.   $(gsccolor_h) $(gspaint_h) $(gsstruct_h) \
  311.   $(gxfixed_h) $(gxfrac_h) $(gxarith_h) $(gxmatrix_h) \
  312.   $(gxdevice_h) $(gzpath_h) $(gzstate_h) \
  313.   $(gzcpath_h) $(gxdevmem_h) $(gximage_h) $(gdevmrop_h)
  314.  
  315. gximage0.$(OBJ): gximage0.c $(GXERR) $(memory__h) \
  316.   $(gxcpath_h) $(gxdevice_h) $(gximage_h)
  317.  
  318. gximage1.$(OBJ): gximage1.c $(GXERR) $(gpcheck_h) \
  319.   $(gdevmem_h) $(gsccolor_h) $(gspaint_h) $(gsutil_h) \
  320.   $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdevice_h) $(gxdevmem_h) \
  321.   $(gxfixed_h) $(gximage_h) $(gxmatrix_h) \
  322.   $(gzht_h) $(gzpath_h) $(gzstate_h)
  323.  
  324. gximage2.$(OBJ): gximage2.c $(GXERR) $(gpcheck_h) \
  325.   $(gdevmem_h) $(gsccolor_h) $(gspaint_h) $(gsutil_h) \
  326.   $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdevice_h) $(gxdevmem_h) \
  327.   $(gxfixed_h) $(gximage_h) $(gxmatrix_h) \
  328.   $(gzht_h) $(gzpath_h) $(gzstate_h)
  329.  
  330. gximage3.$(OBJ): gximage3.c $(GXERR) $(gpcheck_h) \
  331.   $(gsccolor_h) $(gspaint_h) \
  332.   $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdevice_h) $(gxdevmem_h) \
  333.   $(gxfixed_h) $(gximage_h) $(gxmatrix_h) \
  334.   $(gzht_h) $(gzpath_h) $(gzstate_h)
  335.  
  336. gximage4.$(OBJ): gximage4.c $(GXERR) $(gpcheck_h) \
  337.   $(gsccolor_h) $(gspaint_h) \
  338.   $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdevice_h) $(gxdevmem_h) \
  339.   $(gxfixed_h) $(gximage_h) $(gxmatrix_h) \
  340.   $(gzht_h) $(gzpath_h) $(gzstate_h)
  341.  
  342. # gximage5 should be included only if iscale.dev is.
  343. gximage5.$(OBJ): gximage5.c $(GXERR) $(gpcheck_h) \
  344.   $(gsccolor_h) $(gspaint_h) \
  345.   $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdevice_h) $(gxdevmem_h) \
  346.   $(gxfixed_h) $(gximage_h) $(gxmatrix_h) \
  347.   $(gzht_h) $(gzpath_h) $(gzstate_h)
  348.  
  349. gxpaint.$(OBJ): gxpaint.c $(GX) \
  350.   $(gxdevice_h) $(gxhttile_h) $(gxpaint_h) $(gxpath_h) $(gzstate_h)
  351.  
  352. gxpath.$(OBJ): gxpath.c $(GXERR) \
  353.   $(gsstruct_h) $(gxfixed_h) $(gzpath_h)
  354.  
  355. gxpath2.$(OBJ): gxpath2.c $(GXERR) $(math__h) \
  356.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  357.  
  358. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) $(math__h) \
  359.   $(gxarith_h) $(gxfixed_h) $(gzpath_h)
  360.  
  361. gxpdash.$(OBJ): gxpdash.c $(GX) $(math__h) \
  362.   $(gscoord_h) $(gsline_h) $(gsmatrix_h) \
  363.   $(gxfixed_h) $(gzline_h) $(gzpath_h)
  364.  
  365. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(math__h) $(gpcheck_h) \
  366.   $(gscoord_h) $(gsdcolor_h) \
  367.   $(gxdevice_h) $(gxfixed_h) $(gxarith_h) \
  368.   $(gxhttile_h) $(gxistate_h) $(gxmatrix_h) $(gxpaint_h) \
  369.   $(gzcpath_h) $(gzline_h) $(gzpath_h)
  370.  
  371. ###### Higher-level facilities
  372.  
  373. gschar.$(OBJ): gschar.c $(GXERR) \
  374.   $(gspath_h) $(gsstruct_h) \
  375.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gxcoord_h) $(gxdevice_h) $(gxdevmem_h) \
  376.   $(gxfont_h) $(gxfont0_h) $(gxchar_h) $(gxfcache_h) $(gzpath_h) $(gzstate_h)
  377.  
  378. gscolor.$(OBJ): gscolor.c $(GXERR) \
  379.   $(gsccolor_h) $(gsstruct_h) $(gsutil_h) \
  380.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) $(gzstate_h)
  381.  
  382. gscoord.$(OBJ): gscoord.c $(GXERR) $(math__h) \
  383.   $(gsccode_h) $(gxcoord_h) $(gxdevice_h) $(gxfarith_h) $(gxfixed_h) $(gxfont_h) \
  384.   $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  385.  
  386. gsdevice.$(OBJ): gsdevice.c $(GXERR) $(memory__h) \
  387.   $(gscdefs_h) $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstruct_h) \
  388.   $(gxbitmap_h) $(gxcmap_h) $(gxdevice_h) $(gxdevmem_h) $(gzstate_h)
  389.  
  390. gsdevmem.$(OBJ): gsdevmem.c $(GXERR) $(math__h) $(memory__h) \
  391.   $(gxarith_h) $(gxdevice_h) $(gxdevmem_h)
  392.  
  393. gsdparam.$(OBJ): gsdparam.c $(GXERR) $(memory__h) $(string__h) \
  394.   $(gsparam_h) $(gxdevice_h) $(gxfixed_h)
  395.  
  396. gsfont.$(OBJ): gsfont.c $(GXERR) \
  397.   $(gsstruct_h) \
  398.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfcache_h) \
  399.   $(gzstate_h)
  400.  
  401. gsht.$(OBJ): gsht.c $(GXERR) \
  402.   $(gsstruct_h) $(gxarith_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  403.  
  404. gshtscr.$(OBJ): gshtscr.c $(GXERR) $(math__h) \
  405.   $(gsstruct_h) $(gxarith_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  406.  
  407. gsimage.$(OBJ): gsimage.c $(GXERR) $(memory__h)\
  408.   $(gscspace_h) $(gsiparam_h) $(gsmatrix_h) $(gsstruct_h) \
  409.   $(gxarith_h) $(gxdevice_h) $(gzstate_h)
  410.  
  411. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  412.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  413.  
  414. gsinit.$(OBJ): gsinit.c $(memory__h) $(stdio__h) \
  415.   $(gdebug_h) $(gp_h) $(gscdefs_h) $(gslib_h) $(gsmemory_h)
  416.  
  417. gsiodev.$(OBJ): gsiodev.c $(GXERR) $(errno__h) $(string__h) \
  418.   $(gp_h) $(gsparam_h) $(gxiodev_h)
  419.  
  420. gsline.$(OBJ): gsline.c $(GXERR) $(math__h) \
  421.   $(gsline_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  422.  
  423. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) $(math__h) \
  424.   $(gxfarith_h) $(gxfixed_h) $(gxmatrix_h)
  425.  
  426. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  427.   $(gspaint_h) $(gspath_h) $(gsropt_h) \
  428.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxpaint_h) \
  429.   $(gzpath_h) $(gzstate_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  430.  
  431. gsparam.$(OBJ): gspaint.c $(GXERR) $(memory__h) $(string__h) \
  432.   $(gsparam_h) $(gsstruct_h)
  433.  
  434. gspath.$(OBJ): gspath.c $(GXERR) \
  435.   $(gscoord_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  436.   $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  437.  
  438. gsstate.$(OBJ): gsstate.c $(GXERR) \
  439.   $(gscie_h) $(gscolor2_h) $(gscoord_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  440.   $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) \
  441.   $(gzstate_h) $(gzht_h) $(gzline_h) $(gzpath_h) $(gzcpath_h)
  442.  
  443. ###### The internal devices
  444.  
  445. ### The default, null, forwarding, bounding box, and render/RGB
  446. ### device implementations:
  447.  
  448. # The bounding box device is not normally a free-standing device,
  449. # but we can configure it as one for testing.
  450. bbox.dev: gdevbbox.$(OBJ)
  451.     $(SETDEV) bbox gdevbbox.$(OBJ)
  452.  
  453. gdevbbox.$(OBJ): gdevbbox.c $(GXERR) $(math__h) $(memory__h) \
  454.   $(gdevbbox_h) $(gsdevice_h) $(gsparam_h) \
  455.   $(gxcpath_h) $(gxdevice_h) $(gxistate_h) $(gxpaint_h) $(gxpath_h)
  456.  
  457. gdevddrw.$(OBJ): gdevddrw.c $(GXERR) $(math__h) $(gpcheck_h) \
  458.   $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  459.  
  460. gdevdflt.$(OBJ): gdevdflt.c $(GXERR) $(gpcheck_h) \
  461.   $(gxcpath_h) $(gxdevice_h) $(gxdevmem_h)
  462.  
  463. gdevnfwd.$(OBJ): gdevnfwd.c $(GX) \
  464.   $(gxdevice_h)
  465.  
  466. # The render/RGB device is only here as an example, but we can configure
  467. # it as a real device for testing.
  468. rrgb.dev: gdevrrgb.$(OBJ) page.dev
  469.     $(SETPDEV) rrgb gdevrrgb.$(OBJ)
  470.  
  471. gdevrrgb.$(OBJ): gdevrrgb.c $(AK)\
  472.   $(gdevprn_h)
  473.  
  474. ### The memory devices:
  475.  
  476. gdevmem_h=gdevmem.h $(gsbitops_h)
  477.  
  478. gdevabuf.$(OBJ): gdevabuf.c $(GXERR) \
  479.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  480.  
  481. gdevmem.$(OBJ): gdevmem.c $(GXERR) \
  482.   $(gsstruct_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  483.  
  484. gdevm1.$(OBJ): gdevm1.c $(GX) \
  485.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  486.  
  487. gdevm2.$(OBJ): gdevm2.c $(GX) \
  488.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  489.  
  490. gdevm4.$(OBJ): gdevm4.c $(GX) \
  491.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  492.  
  493. gdevm8.$(OBJ): gdevm8.c $(GX) \
  494.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  495.  
  496. gdevm16.$(OBJ): gdevm16.c $(GX) \
  497.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  498.  
  499. gdevm24.$(OBJ): gdevm24.c $(GX) \
  500.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  501.  
  502. gdevm32.$(OBJ): gdevm32.c $(GX) \
  503.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  504.  
  505. gdevmpla.$(OBJ): gdevmpla.c $(GX) \
  506.   $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  507.  
  508. # Create a pseudo-"feature" for the entire graphics library.
  509.  
  510. LIB1s=gsalloc.$(OBJ) gsbitops.$(OBJ) gsbittab.$(OBJ)
  511. LIB2s=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) gsdevice.$(OBJ) gsdevmem.$(OBJ)
  512. LIB3s=gsdparam.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) gshtscr.$(OBJ)
  513. LIB4s=gsimage.$(OBJ) gsimpath.$(OBJ) gsinit.$(OBJ) gsiodev.$(OBJ)
  514. LIB6s=gsline.$(OBJ) gsmatrix.$(OBJ) gsmemory.$(OBJ) gsmisc.$(OBJ)
  515. LIB7s=gspaint.$(OBJ) gsparam.$(OBJ) gspath.$(OBJ) gsstate.$(OBJ) gsutil.$(OBJ)
  516. LIB1x=gxacpath.$(OBJ) gxbcache.$(OBJ)
  517. LIB2x=gxccache.$(OBJ) gxccman.$(OBJ) gxcht.$(OBJ) gxcmap.$(OBJ) gxcpath.$(OBJ)
  518. LIB3x=gxdcconv.$(OBJ) gxdcolor.$(OBJ) gxdither.$(OBJ) gxfill.$(OBJ) gxht.$(OBJ)
  519. LIB4x=gximage.$(OBJ) gximage0.$(OBJ) gximage1.$(OBJ) gximage2.$(OBJ)
  520. LIB5x=gximage3.$(OBJ) gximage4.$(OBJ) gximage5.$(OBJ) 
  521. LIB6x=gxpaint.$(OBJ) gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxpdash.$(OBJ)
  522. LIB7x=gxstroke.$(OBJ)
  523. LIB1d=gdevabuf.$(OBJ) gdevddrw.$(OBJ) gdevdflt.$(OBJ) gdevnfwd.$(OBJ)
  524. LIB2d=gdevmem.$(OBJ) gdevm1.$(OBJ) gdevm2.$(OBJ) gdevm4.$(OBJ) gdevm8.$(OBJ)
  525. LIB3d=gdevm16.$(OBJ) gdevm24.$(OBJ) gdevm32.$(OBJ) gdevmpla.$(OBJ)
  526. LIBs=$(LIB1s) $(LIB2s) $(LIB3s) $(LIB4s) $(LIB5s) $(LIB6s) $(LIB7s)
  527. LIBx=$(LIB1x) $(LIB2x) $(LIB3x) $(LIB4x) $(LIB5x) $(LIB6x) $(LIB7x)
  528. LIBd=$(LIB1d) $(LIB2d) $(LIB3d)
  529. LIB_ALL=$(LIBs) $(LIBx) $(LIBd)
  530. libs.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBs)
  531.     $(EXP)echogs -w libs.dev $(LIB1s)
  532.     $(EXP)echogs -a libs.dev $(LIB2s)
  533.     $(EXP)echogs -a libs.dev $(LIB3s)
  534.     $(EXP)echogs -a libs.dev $(LIB4s)
  535.     $(EXP)echogs -a libs.dev $(LIB5s)
  536.     $(EXP)echogs -a libs.dev $(LIB6s)
  537.     $(EXP)echogs -a libs.dev $(LIB7s)
  538.     $(ADDMOD) libs -init gscolor
  539. libx.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBx)
  540.     $(EXP)echogs -w libx.dev $(LIB1x)
  541.     $(EXP)echogs -a libx.dev $(LIB2x)
  542.     $(EXP)echogs -a libx.dev $(LIB3x)
  543.     $(EXP)echogs -a libx.dev $(LIB4x)
  544.     $(EXP)echogs -a libx.dev $(LIB5x)
  545.     $(EXP)echogs -a libx.dev $(LIB6x)
  546.     $(EXP)echogs -a libx.dev $(LIB7x)
  547. libd.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBd)
  548.     $(EXP)echogs -w libd.dev $(LIB1d)
  549.     $(EXP)echogs -a libd.dev $(LIB2d)
  550.     $(EXP)echogs -a libd.dev $(LIB3d)
  551. # roplib shouldn't be required....
  552. libcore.dev: $(LIB_MAK) $(ECHOGS_XE)\
  553.   libs.dev libx.dev libd.dev iscale.dev roplib.dev
  554.     $(SETMOD) libcore
  555.     $(ADDMOD) libcore -dev nullpage
  556.     $(ADDMOD) libcore -include libs libx libd iscale roplib
  557.  
  558. # ---------------- Stream support ---------------- #
  559. # Currently the only thing in the library that uses this is clists.
  560.  
  561. stream_h=stream.h $(scommon_h)
  562.  
  563. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  564.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  565.  
  566. # ---------------- CCITTFax filters ---------------- #
  567. # These are used by clists, some drivers, and Level 2 in general.
  568.  
  569. cfe_=scfe.$(OBJ) scfetab.$(OBJ) shc.$(OBJ)
  570. cfe.dev: $(LIB_MAK) $(ECHOGS_XE) $(cfe_)
  571.     $(SETMOD) cfe $(cfe_)
  572.  
  573. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h)\
  574.   $(scf_h) $(strimpl_h) $(scfx_h)
  575.  
  576. scfetab.$(OBJ): scfetab.c $(AK) $(std_h) $(scommon_h) $(scf_h)
  577.  
  578. shc.$(OBJ): shc.c $(AK) $(std_h) $(shc_h)
  579.  
  580. cfd_=scfd.$(OBJ) scfdtab.$(OBJ)
  581. cfd.dev: $(LIB_MAK) $(ECHOGS_XE) $(cfd_)
  582.     $(SETMOD) cfd $(cfd_)
  583.  
  584. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h)\
  585.   $(scf_h) $(strimpl_h) $(scfx_h)
  586.  
  587. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scommon_h) $(scf_h)
  588.  
  589. # ---------------- LZW filters ---------------- #
  590. # These are used by Level 2 in general.
  591.  
  592. lzwe_=slzwce.$(OBJ) slzwc.$(OBJ)
  593. #lzwe_=slzwe.$(OBJ) slzwc.$(OBJ)
  594. lzwe.dev: $(LIB_MAK) $(ECHOGS_XE) $(lzwe_)
  595.     $(SETMOD) lzwe $(lzwe_)
  596.  
  597. slzwce.$(OBJ): slzwce.c $(AK) $(stdio__h) $(gdebug_h)\
  598.   $(slzwx_h) $(strimpl_h)
  599.  
  600. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h)\
  601.   $(slzwx_h) $(strimpl_h)
  602.  
  603. slzwc.$(OBJ): slzwc.c $(AK) $(std_h)\
  604.   $(slzwx_h) $(strimpl_h)
  605.  
  606. lzwd_=slzwd.$(OBJ) slzwc.$(OBJ)
  607. lzwd.dev: $(LIB_MAK) $(ECHOGS_XE) $(lzwd_)
  608.     $(SETMOD) lzwd $(lzwd_)
  609.  
  610. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h)\
  611.   $(slzwx_h) $(strimpl_h)
  612.  
  613. # ---------------- PCX decoding filter ---------------- #
  614. # This is an adhoc filter not used by anything in the standard configuration.
  615.  
  616. pcxd_=spcxd.$(OBJ)
  617. pcxd.dev: $(LIB_MAK) $(ECHOGS_XE) $(pcxd_)
  618.     $(SETMOD) pcxd $(pcxd_)
  619.  
  620. spcxd.$(OBJ): spcxd.c $(AK) $(stdio__h) $(memory__h) \
  621.   $(spcxx_h) $(strimpl_h)
  622.  
  623. # ---------------- Pixel-difference filters ---------------- #
  624. # The Predictor facility of the LZW and Flate filters uses these.
  625.  
  626. pdiff_=spdiff.$(OBJ)
  627. pdiff.dev: $(LIB_MAK) $(ECHOGS_XE) $(pdiff_)
  628.     $(SETMOD) pdiff $(pdiff_)
  629.  
  630. spdiff.$(OBJ): spdiff.c $(AK) $(std_h)\
  631.   $(spdiffx_h) $(strimpl_h)
  632.  
  633. # ---------------- PNG pixel prediction filters ---------------- #
  634. # The Predictor facility of the LZW and Flate filters uses these.
  635.  
  636. pngp_=spngp.$(OBJ)
  637. pngp.dev: $(LIB_MAK) $(ECHOGS_XE) $(pngp_)
  638.     $(SETMOD) pngp $(pngp_)
  639.  
  640. spngp.$(OBJ): spngp.c $(AK) $(memory__h)\
  641.   $(spngpx_h) $(strimpl_h)
  642.  
  643. # ---------------- RunLength filters ---------------- #
  644. # These are used by clists and also by Level 2 in general.
  645.  
  646. rle_=srle.$(OBJ)
  647. rle.dev: $(LIB_MAK) $(ECHOGS_XE) $(rle_)
  648.     $(SETMOD) rle $(rle_)
  649.  
  650. srle.$(OBJ): srle.c $(AK) $(stdio__h) $(memory__h) \
  651.   $(srlx_h) $(strimpl_h)
  652.  
  653. rld_=srld.$(OBJ)
  654. rld.dev: $(LIB_MAK) $(ECHOGS_XE) $(rld_)
  655.     $(SETMOD) rld $(rld_)
  656.  
  657. srld.$(OBJ): srld.c $(AK) $(stdio__h) $(memory__h) \
  658.   $(srlx_h) $(strimpl_h)
  659.  
  660. # ---------------- zlib filters ---------------- #
  661. # These are used by clists and are also available as filters.
  662.  
  663. szlibc_=szlibc.$(OBJ)
  664.  
  665. szlibc.$(OBJ): szlibc.c $(AK) $(std_h) \
  666.   $(gsmemory_h) $(gsstruct_h) $(gstypes_h) $(strimpl_h) $(szlibx_h)
  667.     $(CCC) -I. -I$(ZSRCDIR) $(srcdir)/szlibc.c
  668.  
  669. szlibe_=$(szlibc_) szlibe.$(OBJ)
  670. szlibe.dev: $(LIB_MAK) $(ECHOGS_XE) zlibe.dev $(szlibe_)
  671.     $(SETMOD) szlibe $(szlibe_)
  672.     $(ADDMOD) szlibe -include zlibe
  673.  
  674. szlibe.$(OBJ): szlibe.c $(AK) $(std_h) \
  675.   $(gsmemory_h) $(strimpl_h) $(szlibx_h)
  676.     $(CCC) -I. -I$(ZSRCDIR) $(srcdir)/szlibe.c
  677.  
  678. szlibd_=$(szlibc_) szlibd.$(OBJ)
  679. szlibd.dev: $(LIB_MAK) $(ECHOGS_XE) zlibd.dev $(szlibd_)
  680.     $(SETMOD) szlibd $(szlibd_)
  681.     $(ADDMOD) szlibd -include zlibd
  682.  
  683. szlibd.$(OBJ): szlibd.c $(AK) $(std_h) \
  684.   $(gsmemory_h) $(strimpl_h) $(szlibx_h)
  685.     $(CCC) -I. -I$(ZSRCDIR) $(srcdir)/szlibd.c
  686.  
  687. # ---------------- Command lists ---------------- #
  688.  
  689. gxcldev_h=gxcldev.h $(gxclist_h) $(gsropt_h) $(gxht_h) $(gxtmap_h) $(gxdht_h)\
  690.   $(gxfixed_h) $(strimpl_h) $(scfx_h) $(srlx_h)
  691. gxclpath_h=gxclpath.h $(gxfixed_h)
  692.  
  693. # Choose between clfile and clmem.  Someday this might be dynamic....
  694. cl_impl=clfile
  695.  
  696. # Command list package.  Currently the higher-level facilities are required,
  697. # but eventually they will be optional.
  698. clist.dev: $(LIB_MAK) $(ECHOGS_XE) clbase.dev clpath.dev
  699.     $(SETMOD) clist -include clbase clpath
  700.  
  701. # Base command list facility.
  702. clbase_=gxclist.$(OBJ) gxclbits.$(OBJ) gxclpath.$(OBJ) gxclread.$(OBJ) stream.$(OBJ)
  703. clbase.dev: $(LIB_MAK) $(ECHOGS_XE) $(clbase_) $(cl_impl).dev \
  704.   cfe.dev cfd.dev rle.dev rld.dev
  705.     $(SETMOD) clbase $(clbase_)
  706.     $(ADDMOD) clbase -include $(cl_impl) cfe cfd rle rld
  707.  
  708. gdevht_h=gdevht.h
  709.  
  710. gdevht.$(OBJ): gdevht.c $(GXERR) \
  711.   $(gdevht_h) $(gxdcconv_h) $(gxdcolor_h) $(gxdevice_h) $(gxdither_h)
  712.  
  713. gxclist.$(OBJ): gxclist.c $(GXERR) $(memory__h) $(gpcheck_h) \
  714.   $(gsbitops_h) $(gsutil_h) \
  715.   $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  716.  
  717. gxclbits.$(OBJ): gxclbits.c $(GXERR) $(memory__h) $(gpcheck_h) \
  718.   $(gsbitops_h) \
  719.   $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  720.  
  721. # (gxclread shouldn't need gxclpath.h)
  722. gxclread.$(OBJ): gxclread.c $(GXERR) $(gpcheck_h) \
  723.   $(gdevht_h) $(gsbitops_h) $(gscspace_h) $(gsdevice_h) $(gsdcolor_h) \
  724.   $(gxbitmap_h) $(gxcldev_h) $(gxclpath_h) $(gxdevice_h) $(gxdevmem_h) \
  725.   $(gxhttile_h) $(gxpaint_h) $(gzacpath_h) $(gzcpath_h) $(gzpath_h) \
  726.   $(stream_h) $(strimpl_h)
  727.  
  728. # Higher-level command list facilities.
  729. clpath_=gxclimag.$(OBJ) gxclpath.$(OBJ)
  730. clpath.dev: $(LIB_MAK) $(ECHOGS_XE) $(clpath_)
  731.     $(SETMOD) clpath $(clpath_)
  732.     $(ADDMOD) clpath -init climag clpath
  733.  
  734. gxclimag.$(OBJ): gxclimag.c $(GXERR) $(math__h) $(memory__h)\
  735.   $(gscspace_h)\
  736.   $(gxarith_h) $(gxcldev_h) $(gxclpath_h) $(gxdevice_h) $(gxdevmem_h)
  737.  
  738. gxclpath.$(OBJ): gxclpath.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h) \
  739.   $(gxbitmap_h) $(gxcldev_h) $(gxclpath_h) $(gxdevice_h) $(gxdevmem_h) $(gxpaint_h) \
  740.   $(gzcpath_h) $(gzpath_h)
  741.  
  742. # Implement band lists on files.
  743.  
  744. clfile_=gxclfile.$(OBJ)
  745. clfile.dev: $(LIB_MAK) $(ECHOGS_XE) $(clfile_)
  746.     $(SETMOD) clfile $(clfile_)
  747.  
  748. gxclfile.$(OBJ): gxclfile.c $(stdio__h) $(string__h) \
  749.   $(gp_h) $(gsmemory_h) $(gserror_h) $(gserrors_h) $(gxclio_h)
  750.  
  751. # Implement band lists in memory (RAM).
  752.  
  753. clmem_=gxclmem.$(OBJ)
  754. clmem.dev: $(LIB_MAK) $(ECHOGS_XE) $(clmem_) lzwe.dev lzwd.dev
  755.     $(SETMOD) clmem $(clmem_)
  756.     $(ADDMOD) clmem -include lzwe lzwd
  757.  
  758. gxclmem_h=gxclmem.h $(gxclio_h)
  759.  
  760. gxclmem.$(OBJ): gxclmem.c $(GXERR) \
  761.   $(gxclmem_h)
  762.  
  763. # ---------------- Page devices ---------------- #
  764. # We include this here, rather than in devs.mak, because it is more like
  765. # a feature than a simple device.
  766.  
  767. page_=gdevprn.$(OBJ)
  768. page.dev: $(LIB_MAK) $(ECHOGS_XE) $(page_) clist.dev
  769.     $(SETMOD) page $(page_)
  770.     $(ADDMOD) page -include clist
  771.  
  772. gdevprn.$(OBJ): gdevprn.c $(ctype__h) \
  773.   $(gdevprn_h) $(gp_h) $(gsparam_h) $(gxclio_h)
  774.  
  775. # ---------------- Image scaling filter ---------------- #
  776. # Currently this module is required even in Level 1 systems,
  777. # but it should be optional in Level 1 and required only in Level 2.
  778.  
  779. iscale_=siscale.$(OBJ)
  780. iscale.dev: $(LIB_MAK) $(ECHOGS_XE) $(iscale_)
  781.     $(SETMOD) iscale $(iscale_)
  782.  
  783. siscale.$(OBJ): siscale.c $(AK) $(math__h) $(memory__h) $(stdio__h) \
  784.   $(siscale_h) $(strimpl_h)
  785.  
  786. # ---------------- RasterOp et al ---------------- #
  787. # Currently this module is required, but it should be optional.
  788.  
  789. gsrop_h=gsrop.h $(gsropt_h)
  790.  
  791. roplib_=gdevmrop.$(OBJ) gsrop.$(OBJ) gsroptab.$(OBJ)
  792. roplib.dev: $(LIB_MAK) $(ECHOGS_XE) $(roplib_)
  793.     $(SETMOD) roplib $(roplib_)
  794.     $(ADDMOD) roplib -init roplib
  795.  
  796. gdevrun.$(OBJ): gdevrun.c $(GXERR) $(memory__h) \
  797.   $(gxdevice_h) $(gxdevmem_h)
  798.  
  799. gdevmrop.$(OBJ): gdevmrop.c $(GXERR) $(memory__h) \
  800.   $(gsbittab_h) $(gsropt_h) \
  801.   $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) $(gxdevrop_h) \
  802.   $(gdevmrop_h)
  803.  
  804. gsrop.$(OBJ): gsrop.c $(GXERR) \
  805.   $(gsrop_h) $(gzstate_h)
  806.  
  807. gsroptab.$(OBJ): gsroptab.c $(stdpre_h) $(gsropt_h)
  808.     $(CCLEAF) $(srcdir)/gsroptab.c
  809.  
  810. # -------- Composite (PostScript Type 0) font support -------- #
  811.  
  812. psf0lib_=gschar0.$(OBJ) gsfont0.$(OBJ)
  813. psf0lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psf0lib_)
  814.     $(SETMOD) psf0lib $(psf0lib_)
  815.  
  816. gschar0.$(OBJ): gschar0.c $(GXERR) \
  817.   $(gsstruct_h) $(gxfixed_h) $(gxdevice_h) $(gxdevmem_h) \
  818.   $(gxfont_h) $(gxfont0_h) $(gxchar_h)
  819.  
  820. gsfont0.$(OBJ): gsfont0.c $(GXERR) \
  821.   $(gsmatrix_h) $(gsstruct_h) $(gxfixed_h) $(gxdevmem_h) $(gxfcache_h) \
  822.   $(gxfont_h) $(gxfont0_h) $(gxchar_h) $(gxdevice_h)
  823.  
  824. # ---------------- Pattern color ---------------- #
  825.  
  826. patlib_=gspcolor.$(OBJ) gxclip2.$(OBJ) gxpcmap.$(OBJ)
  827. patlib.dev: $(LIB_MAK) $(ECHOGS_XE) cmyklib.dev psl2lib.dev $(patlib_)
  828.     $(SETMOD) patlib -include cmyklib psl2lib
  829.     $(ADDMOD) patlib -obj $(patlib_)
  830.  
  831. gspcolor.$(OBJ): gspcolor.c $(GXERR) $(math__h) \
  832.   $(gsimage_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  833.   $(gxarith_h) $(gxcolor2_h) $(gxcoord_h) $(gxclip2_h) $(gxcspace_h) \
  834.   $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) \
  835.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gxpcolor_h) $(gzstate_h)
  836.  
  837. gxclip2.$(OBJ): gxclip2.c $(GXERR) $(memory__h) \
  838.   $(gsstruct_h) $(gxclip2_h) $(gxdevice_h) $(gxdevmem_h)
  839.  
  840. gxpcmap.$(OBJ): gxpcmap.c $(GXERR) \
  841.   $(gsstruct_h) $(gsutil_h) \
  842.   $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) \
  843.   $(gxfixed_h) $(gxmatrix_h) $(gxpcolor_h) $(gzstate_h)
  844.  
  845. # ---------------- PostScript Type 1 (and Type 4) fonts ---------------- #
  846.  
  847. psf1lib_=gstype1.$(OBJ) gxhint1.$(OBJ) gxhint2.$(OBJ) gxhint3.$(OBJ)
  848. psf1lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psf1lib_)
  849.     $(SETMOD) psf1lib $(psf1lib_)
  850.  
  851. gscrypt1_h=gscrypt1.h
  852. gstype1_h=gstype1.h
  853. gxfont1_h=gxfont1.h
  854. gxop1_h=gxop1.h
  855. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  856.  
  857. gstype1.$(OBJ): gstype1.c $(GXERR) $(math__h) \
  858.   $(gsline_h) $(gspath_h) $(gsstruct_h) \
  859.   $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) \
  860.   $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxop1_h) $(gxtype1_h) \
  861.   $(gzpath_h)
  862.  
  863. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  864.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) \
  865.   $(gxfont_h) $(gxfont1_h) $(gxtype1_h)
  866.  
  867. gxhint2.$(OBJ): gxhint2.c $(GXERR) \
  868.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) \
  869.   $(gxfont_h) $(gxfont1_h) $(gxtype1_h) $(gxop1_h)
  870.  
  871. gxhint3.$(OBJ): gxhint3.c $(GXERR) \
  872.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) \
  873.   $(gxfont_h) $(gxfont1_h) $(gxtype1_h) $(gxop1_h) \
  874.   $(gxpath_h)
  875.  
  876. # ---------------- TrueType and PostScript Type 42 fonts ---------------- #
  877.  
  878. ttflib_=gstype42.$(OBJ)
  879. ttflib.dev: $(LIB_MAK) $(ECHOGS_XE) $(ttflib_)
  880.     $(SETMOD) ttflib $(ttflib_)
  881.  
  882. gxfont42_h=gxfont42.h
  883.  
  884. gstype42.$(OBJ): gstype42.c $(GXERR) $(memory__h) \
  885.   $(gsccode_h) $(gsmatrix_h) $(gsstruct_h) \
  886.   $(gxfixed_h) $(gxfont_h) $(gxfont42_h) $(gxistate_h) $(gxpath_h)
  887.  
  888. # -------- Level 1 color extensions (CMYK color and colorimage) -------- #
  889.  
  890. cmyklib_=gscolor1.$(OBJ) gsht1.$(OBJ)
  891. cmyklib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cmyklib_)
  892.     $(SETMOD) cmyklib $(cmyklib_)
  893.     $(ADDMOD) cmyklib -init gscolor1
  894.  
  895. gscolor1.$(OBJ): gscolor1.c $(GXERR) \
  896.   $(gsccolor_h) $(gscolor1_h) $(gsstruct_h) $(gsutil_h) \
  897.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) \
  898.   $(gzstate_h)
  899.  
  900. gsht1.$(OBJ): gsht1.c $(GXERR) \
  901.   $(gsstruct_h) $(gsutil_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  902.  
  903. # ---------------- HSB color ---------------- #
  904.  
  905. hsblib_=gshsb.$(OBJ)
  906. hsblib.dev: $(LIB_MAK) $(ECHOGS_XE) $(hsblib_)
  907.     $(SETMOD) hsblib $(hsblib_)
  908.  
  909. gshsb.$(OBJ): gshsb.c $(GX) \
  910.   $(gscolor_h) $(gshsb_h) $(gxfrac_h)
  911.  
  912. # ---- Level 1 path miscellany (arcs, pathbbox, path enumeration) ---- #
  913.  
  914. path1lib_=gspath1.$(OBJ)
  915. path1lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(path1lib_)
  916.     $(SETMOD) path1lib $(path1lib_)
  917.  
  918. gspath1.$(OBJ): gspath1.c $(GXERR) $(math__h) \
  919.   $(gscoord_h) $(gspath_h) $(gsstruct_h) \
  920.   $(gxfarith_h) $(gxfixed_h) $(gxmatrix_h) \
  921.   $(gzstate_h) $(gzpath_h)
  922.  
  923. # ---------------- Level 2 color space support ---------------- #
  924.  
  925. psl2lib_=gscolor2.$(OBJ)
  926. psl2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psl2lib_)
  927.     $(SETMOD) psl2lib $(psl2lib_)
  928.  
  929. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  930.   $(gxarith_h) $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) $(gxmatrix_h) \
  931.   $(gzstate_h)
  932.  
  933. # ---------------- Display Postscript / Level 2 support ---------------- #
  934.  
  935. dps2lib_=gsdps1.$(OBJ)
  936. dps2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(dps2lib_)
  937.     $(SETMOD) dps2lib $(dps2lib_)
  938.  
  939. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(math__h) \
  940.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gspath2_h) \
  941.   $(gxfixed_h) $(gxmatrix_h) $(gzpath_h) $(gzstate_h)
  942.  
  943. # ---------------- CIE color ---------------- #
  944.  
  945. cielib_=gscie.$(OBJ) gxctable.$(OBJ)
  946. cielib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cielib_)
  947.     $(SETMOD) cielib $(cielib_)
  948.  
  949. gscie.$(OBJ): gscie.c $(GXERR) $(math__h) \
  950.   $(gscie_h) $(gscolor2_h) $(gsmatrix_h) $(gsstruct_h) \
  951.   $(gxarith_h) $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gzstate_h)
  952.  
  953. gxctable.$(OBJ): gxctable.c $(GX) \
  954.   $(gxfixed_h) $(gxfrac_h) $(gxctable_h)
  955.  
  956. # ---------------- Separation colors ---------------- #
  957.  
  958. seprlib_=gscsepr.$(OBJ)
  959. seprlib.dev: $(LIB_MAK) $(ECHOGS_XE) $(seprlib_)
  960.     $(SETMOD) seprlib $(seprlib_)
  961.  
  962. gscsepr.$(OBJ): gscsepr.c $(GXERR) \
  963.   $(gsmatrix_h) $(gsrefct_h) $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h)
  964.  
  965. # ----------------------- Platform-specific modules ----------------------- #
  966. # Platform-specific code doesn't really belong here: this is code that is
  967. # shared among multiple platforms.
  968.  
  969. # Frame buffer implementations.
  970.  
  971. gp_nofb.$(OBJ): gp_nofb.c $(GX) \
  972.   $(gp_h) $(gxdevice_h)
  973.  
  974. gp_dosfb.$(OBJ): gp_dosfb.c $(AK) $(memory__h) \
  975.   $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  976.  
  977. # MS-DOS file system, also used by Desqview/X.
  978. gp_dosfs.$(OBJ): gp_dosfs.c $(AK) $(dos__h) $(gp_h) $(gx_h)
  979.  
  980. # MS-DOS file enumeration, *not* used by Desqview/X.
  981. gp_dosfe.$(OBJ): gp_dosfe.c $(AK) $(stdio__h) $(memory__h) $(string__h) \
  982.   $(dos__h) $(gstypes_h) $(gsmemory_h) $(gsstruct_h) $(gp_h) $(gsutil_h)
  983.  
  984. # Other MS-DOS facilities.
  985. gp_msdos.$(OBJ): gp_msdos.c $(AK) $(dos__h) \
  986.   $(gsmemory_h) $(gstypes_h) $(gp_h)
  987.  
  988. # Unix(-like) file system, also used by Desqview/X.
  989. gp_unifs.$(OBJ): gp_unifs.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  990.   $(gsstruct_h) $(gsutil_h) $(stat__h) $(dirent__h)
  991.  
  992. # Unix(-like) file name syntax, *not* used by Desqview/X.
  993. gp_unifn.$(OBJ): gp_unifn.c $(AK) $(gx_h) $(gp_h)
  994.  
  995. # Misc Libnix Amiga stuff
  996. #modf.$(OBJ): modf.c
  997. #frexp.$(OBJ): frexp.c
  998. #ldexp.$(OBJ): ldexp.c
  999.  
  1000. # ----------------------------- Main program ------------------------------ #
  1001.  
  1002. # Main program for library testing
  1003.  
  1004. gslib.$(OBJ): gslib.c $(AK) $(math__h) \
  1005.   $(gx_h) $(gp_h) $(gserrors_h) $(gsmatrix_h) $(gsstate_h) $(gscspace_h) \
  1006.   $(gscdefs_h) $(gscolor2_h) $(gscoord_h) $(gslib_h) $(gsparam_h) \
  1007.   $(gspaint_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  1008.   $(gxalloc_h) $(gxdevice_h)
  1009.